﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：IDapperExtensionsCofiguration.cs
// 功能描述：TongTongMall.Dapper
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Dapper.DapperExtensions.Mapper;
using TongTongMall.Dapper.DapperExtensions.Sql;
using TongTongMall.Dependecy;

namespace TongTongMall.Dapper.DapperExtensions
{
    public interface IDapperExtensionsConfiguration: ISingletonDependency
    {
        Type DefaultMapper { get; }

        IList<Assembly> MappingAssemblies { get; }

        ISqlDialect Dialect { get; }

        IClassMapper GetMap(Type entityType);

        IClassMapper GetMap<T>() where T : class;

        void ClearCache();
        
        Guid GetNextGuid();
    }
}
